![]() |
GetIconRefVariant |
||||
Header: | Icons.h | Carbon status: | Under Evaluation | |
Specifies a transformation for a given IconRef.
IconRef GetIconRefVariant ( IconRef inIconRef, OSType inVariant, IconTransformType *outTransform );
A value to be tested.
A four-character value. You specify a variant by passing one of the constants defined by the enumeration described in
kTileIconVariant specifies a tiled icon.
kRolloverIconVariant specifies a rollover icon.
kDropIconVariant specifies a drop target icon.
kOpenIconVariant specifies an open icon.
kOpenDropIconVariant specifies a open drop target icon.
On completion, this points to a transformation type that you pass to the function PlotIconRef for purposes of hit-testing.
An IconRef value that you pass to the function PlotIconRef for purposes of hit-testing.
Icon variants give you a simple way to indicate a temporary change of state by changing an icon’s appearance. For example, if you specify the kDropIconVariant value when the user drags over a valid drop target, the GetIconVariant function provides the appropriate data for you to plot the variant with the function PlotIconRef.
Under evaluation for Carbon. Available in CarbonLib 1.0 and later. Exported by CarbonLib 1.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/18/2000)